import { Utility } from '@/libs/utility';

export const ruleManageForm = [
    {
        fieldName: 'id',
        fieldCNName: '',
        filedValue: '',
        /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
        type: ''
    },
    {
        fieldName: 'type',
        fieldCNName: '用能类型',
        filedValue: '',
        /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
        type: 'select',
        span: 2,
        itemList: Utility.getDictList('elecType'),
        rules: {
            required: true, // 只有为true的时候才写，为false这个字段不要
            min: 1, // 这里min一定要写在前面！！！！
            max: 50
        }
    },
    {
        fieldName: 'fxnh',
        fieldCNName: '分项能耗代码',
        filedValue: '',
        /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
        type: 'select',
        span: 2,
        itemList: []
    },
    {
        fieldName: 'yjzx',
        fieldCNName: '一级子项',
        filedValue: '',
        /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
        type: 'select',
        span: 2,
        itemList: []
    },
    {
        fieldName: 'ejzx',
        fieldCNName: '二级子项',
        filedValue: '',
        /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
        type: 'select',
        span: 2,
        itemList: []
    },
    {
        fieldName: 'zdyfx',
        fieldCNName: '自定义分项',
        filedValue: '',
        /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
        type: 'select',
        span: 2,
        itemList: []
    },
    {
        fieldName: 'jsfs',
        fieldCNName: '计算方式',
        filedValue: '',
        /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
        type: 'select',
        span: 2,
        itemList: Utility.getDictList('calcType')
    }
];
